package com.zzx.project.service.impl;

import com.zzx.project.dao.WlmDao;
import com.zzx.project.entity.Websitelm;
import com.zzx.project.service.WlmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WlmServiceImpl implements WlmService {

    @Autowired
    WlmDao wlmDao;

    @Override
    public int addWlm(Websitelm websitelm) {
        return wlmDao.addWlm(websitelm);
    }

    @Override
    public List<Websitelm> getFiveData() {
        return wlmDao.getFiveData();
    }

    @Override
    public List<Websitelm> getAllData() {
        return wlmDao.getAllData();
    }
}
